package org.gr.ias.common.entity;

import java.io.Serializable;

public class ProjectFinancingExtEquity implements Serializable {
    /** 主键*/
    private String id;

    /** 对应融资信息ID*/
    private String projectFinancingId;

    /** 项目所处阶段*/
    private String projectStage;

    /** 资金方占股比例(开始)*/
    private Double equityRatioStart;

    /** 资金方占股比例(结束)*/
    private Double equityRatioEnd;

    /** 投资退出方式*/
    private String investmentSignOutWay;

    /** 投资退出方式备注*/
    private String investmentSignOutWayRemark;

    /** 最短退出年限*/
    private Integer shortestSignOutLimits;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getProjectFinancingId() {
        return projectFinancingId;
    }

    public void setProjectFinancingId(String projectFinancingId) {
        this.projectFinancingId = projectFinancingId == null ? null : projectFinancingId.trim();
    }

    public String getProjectStage() {
        return projectStage;
    }

    public void setProjectStage(String projectStage) {
        this.projectStage = projectStage == null ? null : projectStage.trim();
    }

    public Double getEquityRatioStart() {
        return equityRatioStart;
    }

    public void setEquityRatioStart(Double equityRatioStart) {
        this.equityRatioStart = equityRatioStart;
    }

    public Double getEquityRatioEnd() {
        return equityRatioEnd;
    }

    public void setEquityRatioEnd(Double equityRatioEnd) {
        this.equityRatioEnd = equityRatioEnd;
    }

    public String getInvestmentSignOutWay() {
        return investmentSignOutWay;
    }

    public void setInvestmentSignOutWay(String investmentSignOutWay) {
        this.investmentSignOutWay = investmentSignOutWay == null ? null : investmentSignOutWay.trim();
    }

    public String getInvestmentSignOutWayRemark() {
        return investmentSignOutWayRemark;
    }

    public void setInvestmentSignOutWayRemark(String investmentSignOutWayRemark) {
        this.investmentSignOutWayRemark = investmentSignOutWayRemark == null ? null : investmentSignOutWayRemark.trim();
    }

    public Integer getShortestSignOutLimits() {
        return shortestSignOutLimits;
    }

    public void setShortestSignOutLimits(Integer shortestSignOutLimits) {
        this.shortestSignOutLimits = shortestSignOutLimits;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProjectFinancingExtEquity other = (ProjectFinancingExtEquity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProjectFinancingId() == null ? other.getProjectFinancingId() == null : this.getProjectFinancingId().equals(other.getProjectFinancingId()))
            && (this.getProjectStage() == null ? other.getProjectStage() == null : this.getProjectStage().equals(other.getProjectStage()))
            && (this.getEquityRatioStart() == null ? other.getEquityRatioStart() == null : this.getEquityRatioStart().equals(other.getEquityRatioStart()))
            && (this.getEquityRatioEnd() == null ? other.getEquityRatioEnd() == null : this.getEquityRatioEnd().equals(other.getEquityRatioEnd()))
            && (this.getInvestmentSignOutWay() == null ? other.getInvestmentSignOutWay() == null : this.getInvestmentSignOutWay().equals(other.getInvestmentSignOutWay()))
            && (this.getInvestmentSignOutWayRemark() == null ? other.getInvestmentSignOutWayRemark() == null : this.getInvestmentSignOutWayRemark().equals(other.getInvestmentSignOutWayRemark()))
            && (this.getShortestSignOutLimits() == null ? other.getShortestSignOutLimits() == null : this.getShortestSignOutLimits().equals(other.getShortestSignOutLimits()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProjectFinancingId() == null) ? 0 : getProjectFinancingId().hashCode());
        result = prime * result + ((getProjectStage() == null) ? 0 : getProjectStage().hashCode());
        result = prime * result + ((getEquityRatioStart() == null) ? 0 : getEquityRatioStart().hashCode());
        result = prime * result + ((getEquityRatioEnd() == null) ? 0 : getEquityRatioEnd().hashCode());
        result = prime * result + ((getInvestmentSignOutWay() == null) ? 0 : getInvestmentSignOutWay().hashCode());
        result = prime * result + ((getInvestmentSignOutWayRemark() == null) ? 0 : getInvestmentSignOutWayRemark().hashCode());
        result = prime * result + ((getShortestSignOutLimits() == null) ? 0 : getShortestSignOutLimits().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", projectFinancingId=").append(projectFinancingId);
        sb.append(", projectStage=").append(projectStage);
        sb.append(", equityRatioStart=").append(equityRatioStart);
        sb.append(", equityRatioEnd=").append(equityRatioEnd);
        sb.append(", investmentSignOutWay=").append(investmentSignOutWay);
        sb.append(", investmentSignOutWayRemark=").append(investmentSignOutWayRemark);
        sb.append(", shortestSignOutLimits=").append(shortestSignOutLimits);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}